<include file="Public:header" />
<div class="alert alert-info">
    供应商修改
</div>
<form class="form-horizontal" method="post" action="__URL__/update" onsubmit="return ajax_submit(this);">
    <div class="control-group">
        <label class="control-label">供应商名称<span class="require">*</span></label>
        <div class="controls">
            <input type="text" name="supplier_name" placeholder="长度不超过25位" maxlength="25" value="{$data.supplier_name}">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">供货种类<span class="require">*</span></label>
        <div class="controls">
            <select name="supplier_type" required>
                <option value="-1">--选择一个供货种类--</option>
                <volist name="typeData" id="val">
                    <if condition="$val['id'] eq $data['supplier_type']">
                        <option value="{$val.id}" selected>{$val.type_name}</option>
                    <else />
                        <option value="{$val.id}">{$val.type_name}</option>
                    </if>
                </volist>
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">供应商价格<span class="require">*</span></label>
        <div class="controls">
            <input type="text" name="supplier_price" placeholder="填写数字" maxlength="6"  value="{$data.supplier_price}">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">供应商说明</label>
        <div class="controls">
            <textarea name="supplier_ps" maxlength="255">{$data.supplier_ps}</textarea>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input type="submit" value="确　定" class="btn btn-primary" data-target="#myModal"/>
            <span class="btn btn-warning" onclick="history.back(-1);">返　回</span>
        </div>
    </div>
    <input type="hidden" name="send" value="sub"/>
    <input type="hidden" name="id" value="{$data.id}"/>
</form>

<include file="Public:check"/>

</body>
</html>